package eventStrategies.physicalModel;

import model.IPhysicalDataModel;
import eventManager.AppEvent;
import eventStrategies.IEventResponse;
import events.ECodeEventList;
import events.physicalModel.AddGameEventEvent;

public class AddGameEventStrategy extends IEventResponse {

	private IPhysicalDataModel physModel;
	
	public AddGameEventStrategy(IPhysicalDataModel physModel) {
		super(ECodeEventList.ADD_GAMEEVENT);		
		this.physModel = physModel;
	}

	@Override
	public void execute(AppEvent event) {
		AddGameEventEvent fullEvent = (AddGameEventEvent) event;
		physModel.addGameEvent(fullEvent.gameEvent);
		
	}

}
